#ifndef __GWINDOW_H__
#define __GWINDOW_H__

#include "GMath.h"
#include <string.h>
#include <stdio.h>

#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
#include "support.h"


class CGWindow
{
public:
	GtkWidget *m_pFixed;
	bool m_bEnabled;

public:
	CGWindow(){
		m_pFixed = NULL;
		m_bEnabled = true;
	}
	virtual ~CGWindow(){}

	virtual void show() = 0;
	virtual void hide() = 0;

	virtual void showEX() = 0;
	virtual void hideEX() = 0;

	virtual void setAlpha( float fAlpha ) = 0;

	virtual void create( const char* bg_file = NULL) = 0;
	virtual void setPosition( int x, int y) = 0;
	virtual void setSize( int x, int y) = 0;

	virtual CGPoint getPosition() = 0;
	virtual CGPoint size()       = 0;

	virtual void advanceTime( float fElaspedTime ) = 0;
	virtual void regWindow();

	virtual void setFixed( GtkWidget *_pFixed) {  m_pFixed = _pFixed; }

	virtual bool isPari( GtkWidget *_pGw) = 0;

	virtual void enabled() = 0;
	virtual void disable() = 0;
	bool isEnabled() { return m_bEnabled; }
	virtual void updateLanguage() = 0;

};



#endif//__GWINDOW_H__

